kodespace CLI

kodespace config

kodespace config 命令主要管理 kodespace CLI 的配置。

  1. Usage:
  2. kodespace config SUBCOMMAND [flags]
  3. Available Commands:
  4. set-context Create or update project context.
  5. get-contexts Get all possible project contexts.
  6. use-context Set the current active project context.

kodespace run

kodespace run 命令主要执行构建本地代码,自动生成镜像,将生成镜像部署到云上测试环境过程。

  1. Usage:
  2. kodespace run [service1 service2 ...]

kodespace list

kodespace list 命令主要查看 Zadig 资源的基本信息,比如集成环境信息和服务信息。

  1. Usage:
  2. kodespace list [command]
  3. Available Commands:
  4. envs Get all environments
  5. services Get all services
  6. Flags:
  7. -h, --help help for list
  8. -p, --project string The specified project

kodespace logs

kodespace logs 命令主要打印服务 Pod 的日志。

  1. Usage:
  2. kodespace logs [flags] [POD]
  3. Flags:
  4. -c, --container string Print the logs of this container
  5. -e, --env string The specified environment
  6. -f, --follow Specify if the logs should be streamed
  7. -h, --help help for logs
  8. -p, --project string The specified project
  9. -t, --tail int Lines of recent log file to display (default -1)